﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TempEquipmentList.aspx.cs" Inherits="DuJianliang.ApplicationPlatform.TempEquipment.TempEquipmentList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
         <script type="text/javascript" src="../../Scripts/common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table style="width:100%; margin-bottom:5px;">
        <tr>
            <td>          
                <asp:DropDownList ID="ddlFlowOperation" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="ddlFlowOperation_SelectedIndexChanged">
                    <asp:ListItem Value="-1">全部</asp:ListItem>
                    <asp:ListItem Value="0">未开始</asp:ListItem>
                    <asp:ListItem Value="1">已完成</asp:ListItem>
                    <asp:ListItem Value="2">作废</asp:ListItem>
                    <asp:ListItem Value="3">驳回</asp:ListItem>
                </asp:DropDownList>                
            </td>
            <td style="text-align:right;">
                <asp:Button ID="btnCreate" runat="server" Text="新增申请" 
            onclick="btnCreate_Click"></asp:Button>
            </td>
        </tr>
    </table>
    <div>
        <asp:GridView ID="grv" runat="server" AutoGenerateColumns="False" 
                CellPadding="4" Font-Size="9pt" ForeColor="#333333" GridLines="Both"
                Width="100%"  DataKeyNames="FlowInstanceID,FlowID" onrowcommand="grv_RowCommand" 
            onrowdatabound="grv_RowDataBound" >                                   
                <Columns>
                    <asp:BoundField HeaderText="编号" DataField="applyCode" ItemStyle-Width="100px" />
                    <asp:BoundField HeaderText="提出单位" DataField="applyDepartment" ItemStyle-Width="60px" />
                    <asp:BoundField HeaderText="提出人"  DataField="applyPerson" ItemStyle-Width="50px" />
                    <asp:BoundField HeaderText="用于何产品" DataField="usedFor"  />
                    <asp:BoundField HeaderText="申请理由" DataField="applyReason"  />
                    <asp:BoundField HeaderText="要求解决日期"  DataField="needDate" DataFormatString="{0:d}" ItemStyle-Width="80px" />
                    <asp:BoundField HeaderText="解决日期"  DataField="factDate" DataFormatString="{0:d}" ItemStyle-Width="80px" />
                    <asp:BoundField HeaderText="流程状态" DataField="Completed" ItemStyle-Width="60px" />
                    <asp:BoundField HeaderText="流程发起时间" DataField="FlowCreateDate" ItemStyle-Width="100px" />
                    <asp:BoundField HeaderText="最后处理时间" DataField="OperationDate" ItemStyle-Width="100px" />
                    <asp:TemplateField HeaderText="操作" ItemStyle-Width="160px" ItemStyle-HorizontalAlign="Center" >
                        <ItemTemplate  >
                       
                            <asp:Button ID="btnEdit" runat="server" Text="编辑" Height="20px" CommandName="modify" CommandArgument='<%# Eval("FlowInstanceID")%>'></asp:Button>                            
                            <asp:Button ID="btnFlow" runat="server" Text="流程" Height="20px" CommandName="CmdShowFlow"></asp:Button>
                            <asp:Button ID="btnDelete" runat="server" Text="删除" OnClientClick="return confirm('您确定要删除该记录吗？');" Height="20px" CommandName="del"  CommandArgument='<%# Eval("FlowInstanceID")%>'></asp:Button>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle BackColor="#DFE8F6" Font-Bold="True" ForeColor="#333333" Height="20px" />    
                <RowStyle BackColor="#FAFAFA" ForeColor="#333333" HorizontalAlign="Center"/>
                <EmptyDataTemplate>
                    <div style="text-align:center; margin-top:20px; margin-bottom:20px;">当前没有任何数据</div>        
                </EmptyDataTemplate>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
